package cn.wolfcode.wolf2w.service;

import cn.wolfcode.wolf2w.domain.StrategyCatalog;
import cn.wolfcode.wolf2w.query.StrategyCatalogQuery;
import cn.wolfcode.wolf2w.vo.CatalogVO;
import org.springframework.data.domain.Page;

import java.util.List;

/**
 * Created by 甘静斌 on 2020-08-07 13:38
 */
public interface IStrategyCatalogService {

    /**
     *
     * 添加
     * @param strategyCatalog
     */
    void save(StrategyCatalog strategyCatalog);

    /**
     * 更新
     * @param strategyCatalog
     */
    void update(StrategyCatalog strategyCatalog);

    /**
     * 删除
     * @param id
     */
    void delete(String id);

    /**
     * 查单个
     * @param id
     * @return
     */
    StrategyCatalog get(String id);

    /**
     *
     * 查全部
     * @return
     */
    List<StrategyCatalog> list();

    /**
     * 分页查询
     * @param qo
     * @return
     */
    Page<StrategyCatalog> query(StrategyCatalogQuery qo);

    /**
     * 添加操作
     * @param strategyCatalog
     */
    void saveOrUpdate(StrategyCatalog strategyCatalog);

    /**
     * 攻略编辑框分类下拉框
     * @return
     */
    List<CatalogVO> queryGroupList();

    /**
     * 查询攻略概况
     * @param destId
     * @return
     */
    List<StrategyCatalog> queryByCatalogs(String destId);


}
